package sharkFin.drawer;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.view.View;

public class GraphBuilder extends View{
	private ShapeDrawable maShape;
	
	public GraphBuilder (Context context){
		super(context);

		int x = 10;
        int y = 10;
        int width = 300;
        int height = 50;

        maShape = new ShapeDrawable(new OvalShape());
        maShape.getPaint().setColor(0xff74AC23);
        maShape.setBounds(x, y, x + width, y + height);
    }

    protected void onDraw(Canvas canvas) {
        maShape.draw(canvas);
    }

}
